package com.sinosoft.perfect.system.license.dao;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.sinosoft.perfect.common.system.BaseSqlSessionDaoSupport;
import com.sinosoft.perfect.system.license.MapperSystemLicense;
import com.sinosoft.perfect.system.license.vo.License;

public class LicenseDataDAOImpl extends BaseSqlSessionDaoSupport implements ILicenseDataDAO {
	
	
	private MapperSystemLicense getMapperSystemLicense() {
		return getSqlSession().getMapper(MapperSystemLicense.class);
	}

	@Override
	public Object insertLicense(License license) throws SQLException {
		return this.getMapperSystemLicense().insertLicense(license);
	}

	@Override
	public int deleteLicense(String licenseId) throws SQLException {
		return this.getMapperSystemLicense().deleteLicense(licenseId);
	}

	@Override
	public int updateLicense(License license) throws SQLException {
		return this.getMapperSystemLicense().updateLicense(license);
	}

	@Override
	public List<License> selectLicense() throws SQLException {
		return this.getMapperSystemLicense().selectLicense();
	}

	@Override
	public Date selectCurrentTime() throws SQLException {
		return this.getMapperSystemLicense().selectCurrentTime();
	}
	
	
}
